﻿using Scrips.PlayerData;
using UnityEngine;

public class Jump:PlayerBaseMode
    {
        public static bool isJump;
        public override void Init(Player_Cc player)
        {
            PlayerCurrentStateType = PlayerState.Jump;
        }

        public override void Begin(object[] mParams)
        {
            isJump = false;
        }

        public override void Update()
        {
            mPlayer.rigidbody.AddForce(new Vector3(0,1,0));
           // PlayerStateManger.instance.ChangePlayerMode(PlayerState.Idle);
        }

        public override void End()
        {
            base.End();
        }
    }
